#import "ZLTextHighlight.h"

@implementation ZLTextHighlight

+ (instancetype)highlightWithRange:(NSRange)range {
    return [[self alloc] initWithRange:range];
}

- (instancetype)initWithRange:(NSRange)range {
    self = [super init];
    if (self) {
        _range = range;
        [self setupDefaultValues];
    }
    return self;
}

- (void)setupDefaultValues {
    _normalColor = [UIColor systemBlueColor];
    _highlightColor = [UIColor colorWithRed:0.0 green:0.478 blue:1.0 alpha:0.5];
    _showUnderline = YES;
    _tapAction = nil;
}

// 不需要手动实现 setter 和 getter，因为已经使用了 @property 声明

@end 
